<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Register new user</title>
<link rel="stylesheet" href="style/layout.css" type="text/css"/>
</head>
<body>
	<%@ include file="/include/header.jsp" %>
		<div id="mainContainer">
			<div id="title">Register for recgames.org</div>
			<html:form action="/insertUser">
				<label for="userName">Username:</label>
				<html:text property="userName" styleId="userName" maxlength="30"></html:text>
				<span id="error">${ errorMessages.username }<html:errors property="userName" /></span>
				<br/>
				<label for="email">Email:</label>
				<html:text property="email" styleId="email" maxlength="100" ></html:text>
				<span id="error">${ errorMessages.email }<html:errors property="email" /></span>
				<br/>
				<label for="password">Password:</label>
				<html:password property="password" styleId="password" ></html:password>
				<span id="error"><html:errors property="password" /></span>
				<br/>
				<label for="password2">Repeat password:</label>
				<html:password property="password2" styleId="password2" ></html:password>
				<span id="error"><html:errors property="password2" /></span>
				<br />
				<label for="bio">Bio(optional):</label>
				<html:textarea property="bio" rows="2" cols="30" styleId="bio" ></html:textarea>
				<span id="error"><html:errors property="bio" /></span>
				<br/>
				<html:submit value="Register" ></html:submit>
			</html:form>
			<br />
			<br />
			<a href="https://localhost:8443/recgames/registered/index.do">Back to login page</a>
	</div>
</body>
</html>